﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace  PI_CS_Library
{
    public class LinkParameters
    {
        int _capacity;
        int _availableCapacity;
        float _delay;
        float _errorRate;

        public LinkParameters(int _capacity)
        {
            this._capacity = _capacity;
            _availableCapacity = _capacity;
            _delay = 0;
            _errorRate = 0;
        }

        public LinkParameters(int _capacity, float _delay, float _errorRate)
        {
            this._capacity = _capacity;
            _availableCapacity = _capacity;
            this._delay = _delay;
            this._errorRate = _errorRate;

        }

        // Copy constructor
        public LinkParameters(LinkParameters _oldParameters)
        {
            _capacity = _oldParameters._capacity;
            _availableCapacity = _capacity;
            _delay = _oldParameters._delay;
            _errorRate = _oldParameters._errorRate;
        }

        public int Capacity
        {
            get { return _capacity; }
            set { _capacity = value; }
        }

        public int AvailableCapacity
        {
            get { return _availableCapacity; }
            set { _availableCapacity = value; }
        }

        public float Delay
        {
            get { return _delay; }
            set { _delay = value; }
        }

        public float ErrorRate
        {
            get { return _errorRate; }
            set { _errorRate = value; }
        }
    }
}
